{# src/Acme/TaskBundle/Resources/views/Default/new.html.twig #}

{% form_theme form 'AcmeTaskBundle:Form:fields.html.twig' %}

<form action="{{ path('task_new') }}" method="post" {{ form_enctype(form) }}>
    {{ form_errors(form) }}
    {{ form_row(form.task))}}
    <div>
    {{ form_label(form.dueDate) }}
    {{ form_errors(form.dueDate) }}
    {{ form_widget(form.dueDate) }}
    </div>
    <div>
    {{ form_label(form.description) }}
    {{ form_errors(form.description) }}
    {{ form_widget(form.description) }}
    </div>    
    
    <h3>Category</h3>
	<div class="category">
	{{ form_row(form.category.name) }}
	</div>
    {{ form_rest(form) }}            
	form.vars.value: {{ form.vars.value.task }}
    <input type="submit" />
</form>